apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ .Chart.Name }}
spec:
  replicas: 1
  selector:
    matchLabels:
      app: {{ .Chart.Name }}
  strategy: {}
  template:
    metadata:
      labels:
        app: {{ .Chart.Name }}
    spec:
      containers:
      - image: docker.io/library/mongo-express:0.54.0
        name: mongo-express
        ports:
        - name: http
          containerPort: 8081
        envFrom:
          - secretRef:
              name: {{ .Chart.Name }}-creds
        resources:
          limits:
            cpu: "1"
            memory: 1Gi
          requests:
            cpu: 500m
            memory: 256Mi